<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>js比较运算符</title>
</head>
<body>
  <p>比较运算符</p>
  <ul>
    <li>推荐类型比较时使用===(全等于)和!==(全不等)</li>
  </ul>
  <script>
    const a = 1, b = 2, c = '1'
    console.log(a > b)   // false
    console.log(a >= b)  // false
    console.log(a < b)   // true
    console.log(a <= b)  // true
    console.log(a == b)  // false
    console.log(a != b)  // true
    console.log(a == c)  // true
    console.log(a === c) // false
    console.log(a !== c) // true
  </script>
</body>
</html>